<?php

/*
 * Add ref via a popup window better option
*/
?>
<!DOCTYPE html>
<html class="no-js fuelux">
<head>

<title>Add New Reference</title>

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<link href="http://www.fuelcdn.com/fuelux/2.6.0/css/fuelux.min.css"
	rel="stylesheet" type="text/css">

<style type="text/css">
.ref_number {
	width: 100%;
}
</style>
</head>
<body>
	<script type="text/javascript">
var num = 0;
function ref_wizard() {

    /*

    Directories have to be edited here to open the right window

    window.open(dic);

    with dic to be the directory e.g. "Wizard/fuelux_wizard.php"

    */

	window.open("Wizard/fuelux_wizard.php");
}

function get_ref(text) {
    num++;
    document.getElementById("refs_nr").innerHTML += '<input class="ref_number" type="text" name="ref_'+num+'" value="'+text+'" disabled><br>\n';

    /*

    the wizards calls get_ref(text) with text being : id - title by author
    with id = id in the db
    title = title of the article
    author = author of the article

    */

}
</script>
	<form name="refs" id="refs">
		<span id="refs_nr"></span> <input class="btn" type="button"
			onclick="ref_wizard();" value="Add Reference" />
	</form>

</body>
</html>
